package cn.lsoft.undoner.service;

import cn.lsoft.undoner.model.RabbitQueue;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author <A HREF="mailto:undoner@gmail.com">undoner</A>
 * @date 03-11-2014
 */
@Service
public interface RabbitMQService {
    int reSend(String fromQueue, String toQueue,Integer limit)  throws Exception;

    List<RabbitQueue>  listMessageReadyAllQueue()  throws Exception;

    List<RabbitQueue>  listMessageReadyDeadQueue()  throws Exception;

    List<RabbitQueue>  listMessageReadyQueue()  throws Exception;

    int queuePurge(String queue, Integer limit)  throws Exception;
}
